package com.example.invoicing.service;

import com.example.invoicing.dao.SupplierMapper;
import com.example.invoicing.dao.WarehouseMapper;
import com.example.invoicing.pojo.Supplier;
import com.example.invoicing.pojo.Warehouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseService {
    @Autowired
    private WarehouseMapper warehouseMapper;

    public int deleteByPrimaryKey(String id){
        return warehouseMapper.deleteByPrimaryKey(id);
    }


    public int insertSelective(Warehouse record){
        return warehouseMapper.insertSelective(record);
    }

    public Warehouse selectByPrimaryKey(String id){
        return warehouseMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Warehouse record){
        return warehouseMapper.updateByPrimaryKeySelective(record);
    }

    public List<Warehouse> queryWarehouseList(Warehouse record){
        return warehouseMapper.queryWarehouseList(record);
    }

    public int queryCountLike(Warehouse record){
        return warehouseMapper.queryCountLike(record);
    }

}
